home *** CD-ROM | disk | FTP | other *** search
- // Polyray scene file: SCALCYL.PI
- // Author: Rob McGregor
-
- // A cylinder changes scale on the y-axis
-
- include "..\..\..\colors.inc"
- include "..\..\..\texture.inc"
-
- // Lights and background color
- light <-5, 2, -15>
- light <5, 2, -15>
- background grey
-
- // Set up the camera
- viewpoint {
- from <0, 0, -3>
- at <0, 0, 0>
- up <0, 1, 0>
- angle 45
- resolution 320, 200
- aspect 1.6
- }
-
- // Define the range of animation
- start_frame 0
- end_frame 49
- total_frames 50
- outfile "scale"
-
- // Calculate the changing scale
- static define height 2.0
- define change (height/total_frames) * frame
-
- // Create the cylinder
- object {
- cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
- scale <1, height - change, 1>
- shiny_red
- }
-